package com.ld.wms.business.material.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 物料库存表，用于存每一条库存信息
 * </p>
 *
 * @author wangfeng
 * @since 2025-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("material_example_inventory")
@Schema(description = "物料库存表，用于存每一条库存信息")
public class MaterialExampleInventoryModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "物料实例id")
    private Long materialExampleId;

    @Schema(description = "厂家id")
    private Integer supplierId;

    @Schema(description = "具体孔位id")
    private Integer lockerGridHoleId;

    @Schema(description = "唯一编号")
    private String code;

    @Schema(description = "批次号")
    private String batchNumber;

    @Schema(description = "类型名称")
    private String name;

    @Schema(description = "状态：0:正常，1:出借，2:即将过期，3:已过期，4:余量不足，5待入库，6.出库审批中，7.入库审批中")
    private Integer status;

    @Schema(description = "保质期")
    private Date effectiveTime;

    @Schema(description = "规格")
    private String specifications;

    @Schema(description = "体积")
    private BigDecimal volume;

    @Schema(description = "体积单位")
    private String volumeUnit;

    @Schema(description = "重量")
    private BigDecimal weight;

    @Schema(description = "体积单位")
    private String weightUnit;

    @Schema(description = "具体位置：柜子:具体格子编号:抽屉内部编号，A1:A1:B1")
    private String specificLocation;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;

    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String NAME = "name";

}
